<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><{$site_title}>管理中心</title>

<{include file="js.html"}> <{include file="kindeditor.html"}>

</head>

<body>
		<form action="" method="post" id="myForm" enctype='multipart/form-data'>
           
			<table class="lefttab" cellpadding="0" cellspacing="0">
				<tr>
					<td colspan="2">
						<div style="height: 26px; text-align: left; line-height: 26px; background: url(images/xbj1.jpg) repeat-x; border: 1px solid #e9f5fa; font-weight: bold;">&nbsp;&nbsp;添加</div>
					</td>
				</tr>
				<tr>
					<td align="right"><font color="#e47c02">*</font><strong>文章标题</strong>：</td>
					<td width="873" align="left">&nbsp;<input width="700" type="text" style="width:700px; padding-left: 10px" class="subCheck" name="title" value="<{$row.title}>" datatype="*" nullmsg="标题不能为空" errormsg="请输入文章标题"/></td>
				</tr>
                                <tr>
					<td align="right"></font><strong>简略标题</strong>：</td>
                                       <td width="873" align="left"> <textarea class="subCheck editor0" name="simtitle" style="width: 700px; height: 50px; padding-top: 10px; padding-left: 10px; margin-left: 5px"><{$row.simtitle}></textarea></td>
<!--					<td width="873" align="left">&nbsp;<input width="300" type="text" style="width:700px; height: 50px" class="subCheck" name="simtitle" value="<{$row.simtitle}>" /></td>-->
				</tr>
                                 </tr>
                                 <tr>
		 			<td align="right"></font><strong>标题图片</strong>：</td>
					<td width="873" align="left">&nbsp;<input placeholder="请上传图片" id="company-img" name="img"  nullmsg="必须上传图片" type="file" <{if $row.img==''}> class="subCheck" <{/if}> name="img" id="img"  style="height:30px; margin-top:6px " /></td>
				</tr><{if $row.img!=""}>
				<tr>
					<td align="right"></font><strong>预览:</strong>：</td>
				        <td width="873" align="left"><a target="_blank" href="../admin/upload/image/large/<{$row.img}>"><img src="../admin/upload/image/small/<{$row.img}>" width="110" height="60" /></a></td>
					
					
				</tr>
			       <{/if}>	
				<tr>
                	         <td  colspan="2" style="padding-left:50px">
						<label class="form-label "  style=" float:left" ><span class="c-red" style="color:#e47c02">*</span><strong>分类栏目:</strong></label>
						<div class="" style=" float:left;width:205px; padding-bottom:5px; padding-top:2px; margin-left:10px"> <span class="select-box">
							<select name="channel" class="select" style="width:195px">
							<{foreach item=list from=$res}>
                                                        <option value="<{$list.id}>"<{if $row.channel_id==$list.id}> selected ="selected" <{/if}> ><{$list.title}></option>
							<{/foreach}>
							
							</select>
						</span> </div>
						<label class="form-label col-2"  style=" float:left; margin-left:10px;"><span class="c-red" >*</span><strong>文章类型:</strong></label>
						<div class="" class="" style=" float:left;width:205px;margin-left:-50px; padding-bottom:5px; padding-top:2px; margin-left:10px"> <span class="select-box">
							<select name="type" class="select" style="width:195px">
							<option value="0">全部类型</option>
							<option value="1">帮助说明</option>
							<option value="2">新闻资讯</option>
						</select>
						</span> </div>
						<label class="form-label col-2" style="float:left; margin-left:20px"><strong>排序值:</strong></label>
							<div class="formControls col-2" style=" float:right;width:120px;postion:relative;top:-27px;right:15px;">
							<input type="text" class="input-text" value="0" placeholder="" id="" name="">
							</div>
            		                   </td>
				</tr>
                                <tr>
                	                        <td  colspan="2" style="padding-left:5px">
						<label class="form-label col-2" style="float:left"><strong>文章作者:</strong></label>
						<div class="formControls col-2" style="float:left; margin-left:-45px; padding-bottom:5px; padding-top:5px; width:205px"">
							<input type="text" class="input-text" value="<{$row.author}>" placeholder="" id="" name="author" style="width:200px">
						</div>
						<label class="form-label col-2" style="float:left; margin-left:15px"><strong>文章来源:</strong></label>
						<div class="formControls col-2" style="float:left;  margin-left:-10px;padding-bottom:5px; padding-top:5px; width:230px">
							<input type="text" class="input-text" value="<{$row.froms}>" placeholder="" id="" name="froms" style="width:200px">
						</div>
            		         </td>
				</tr>
				<tr>
					<td align="right"><strong>文章内容</strong>：</td>
                                        <td width="873" align="left" style="padding-left: 8px">
						<textarea class="editor" name="content" style="width: 700px; height: 400px; margin-left:5px"><{$row.content}></textarea>
					</td>
				</tr>
				
                                 <tr>
					<td height="50px" colspan="2">
						<p>&nbsp;</p>
						<p align="left" style="margin-left: 100px;">&nbsp;&nbsp;<input type="submit" name="submit" value="发布" class="inp" /></p>
						<p>&nbsp;</p>
					</td>
				</tr>
			</table>
		</form>
	</div>
<script type="text/javascript" src="http://validform.rjboy.cn/wp-content/themes/validform/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="http://validform.rjboy.cn/Validform/v5.1/Validform_v5.1_min.js"></script>
<script type="text/javascript">
$(function(){
	//$(".registerform").Validform();  //就这一行代码！;
		
	$("#myForm").Validform({
		tiptype:function(msg,o,cssctl){
			//msg：提示信息;
			//o:{obj:*,type:*,curform:*}, obj指向的是当前验证的表单元素（或表单对象），type指示提示的状态，值为1、2、3、4， 1：正在检测/提交数据，2：通过验证，3：验证失败，4：提示ignore状态, curform为当前form对象;
			//cssctl:内置的提示信息样式控制函数，该函数需传入两个参数：显示提示信息的对象 和 当前提示的状态（既形参o中的type）;
			if(!o.obj.is("form")){//验证表单元素时o.obj为该表单元素，全部验证通过提交表单时o.obj为该表单对象;
				var objtip=o.obj.siblings(".Validform_checktip");
				cssctl(objtip,o.type);
				objtip.text(msg);
			}
		}
	});
})
</script>
</body>
</html>